package com.hjxr.sysadmin.zsj.service.impl;

import java.util.List;

import com.hjxr.sysadmin.zsj.domain.Companyinfo;
import com.hjxr.sysadmin.zsj.mapper.CompanyinfoMapper;
import com.hjxr.sysadmin.zsj.service.ICompanyinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 园区楼宇匹配企业信息Service业务层处理
 *
 * @author hjxr
 * @date 2021-03-15
 */
@Service
public class CompanyinfoServiceImpl implements ICompanyinfoService
{
    @Autowired
    private CompanyinfoMapper companyinfoMapper;

    /**
     * 查询园区楼宇匹配企业信息
     *
     * @param id 园区楼宇匹配企业信息ID
     * @return 园区楼宇匹配企业信息
     */
    @Override
    public Companyinfo selectCompanyinfoById(Long id)
    {
        return companyinfoMapper.selectCompanyinfoById(id);
    }

    /**
     * 查询园区楼宇匹配企业信息列表
     *
     * @param companyinfo 园区楼宇匹配企业信息
     * @return 园区楼宇匹配企业信息
     */
    @Override
    public List<Companyinfo> selectCompanyinfoList(Companyinfo companyinfo)
    {
        return companyinfoMapper.selectCompanyinfoList(companyinfo);
    }

    /**
     * 新增园区楼宇匹配企业信息
     *
     * @param companyinfo 园区楼宇匹配企业信息
     * @return 结果
     */
    @Override
    public int insertCompanyinfo(Companyinfo companyinfo)
    {
        return companyinfoMapper.insertCompanyinfo(companyinfo);
    }

    /**
     * 修改园区楼宇匹配企业信息
     *
     * @param companyinfo 园区楼宇匹配企业信息
     * @return 结果
     */
    @Override
    public int updateCompanyinfo(Companyinfo companyinfo)
    {
        return companyinfoMapper.updateCompanyinfo(companyinfo);
    }

    /**
     * 批量删除园区楼宇匹配企业信息
     *
     * @param ids 需要删除的园区楼宇匹配企业信息ID
     * @return 结果
     */
    @Override
    public int deleteCompanyinfoByIds(Long[] ids)
    {
        return companyinfoMapper.deleteCompanyinfoByIds(ids);
    }

    /**
     * 删除园区楼宇匹配企业信息信息
     *
     * @param id 园区楼宇匹配企业信息ID
     * @return 结果
     */
    @Override
    public int deleteCompanyinfoById(Long id)
    {
        return companyinfoMapper.deleteCompanyinfoById(id);
    }
}
